package com.shelly.memento;

import java.io.Serializable;

/**
 * @author: Shelly
 * @create: 2023-01-13 10:06:38
 * @describe: 游戏主体
 * 实现序列化,保存整体【坦克+子弹】
 */
public class GameObject implements Serializable {
    private TankFrame tankFrame;

    public GameObject(TankFrame tankFrame) {
        this.tankFrame = tankFrame;
    }

    public void setTankFrame(TankFrame tankFrame) {
        this.tankFrame = tankFrame;
    }

    @Override
    public String toString() {
        return "GameObject{" +
                "tankFrame=" + tankFrame +
                '}';
    }
}
